﻿namespace AnyOffice.Model
{
    using System;

    public class PlanWorkData
    {
        protected object _attachmentComment;
        protected object _attachmentId;
        protected object _beginDate;
        protected int _completedPercent;
        protected object _content;
        protected DateTime _createDate = DateTime.Now;
        protected string _creator = string.Empty;
        protected object _endDate;
        protected object _manager;
        protected string _name = string.Empty;
        protected object _participator;
        protected int _planId = -1;
        protected object _remark;
        protected int _status;
        protected object _toId;
        protected int _typeId;

        public string AttachmentComment
        {
            get
            {
                return (string) this._attachmentComment;
            }
            set
            {
                this._attachmentComment = value;
            }
        }

        public bool AttachmentCommentIsNull
        {
            get
            {
                return (this._attachmentComment == null);
            }
            set
            {
                if (value)
                {
                    this._attachmentComment = null;
                }
            }
        }

        public string AttachmentId
        {
            get
            {
                return (string) this._attachmentId;
            }
            set
            {
                this._attachmentId = value;
            }
        }

        public bool AttachmentIdIsNull
        {
            get
            {
                return (this._attachmentId == null);
            }
            set
            {
                if (value)
                {
                    this._attachmentId = null;
                }
            }
        }

        public DateTime BeginDate
        {
            get
            {
                return (DateTime) this._beginDate;
            }
            set
            {
                this._beginDate = value;
            }
        }

        public bool BeginDateIsNull
        {
            get
            {
                return (this._beginDate == null);
            }
            set
            {
                if (value)
                {
                    this._beginDate = null;
                }
            }
        }

        public int CompletedPercent
        {
            get
            {
                return this._completedPercent;
            }
            set
            {
                this._completedPercent = value;
            }
        }

        public string Content
        {
            get
            {
                return (string) this._content;
            }
            set
            {
                this._content = value;
            }
        }

        public bool ContentIsNull
        {
            get
            {
                return (this._content == null);
            }
            set
            {
                if (value)
                {
                    this._content = null;
                }
            }
        }

        public DateTime CreateDate
        {
            get
            {
                return this._createDate;
            }
            set
            {
                this._createDate = value;
            }
        }

        public string Creator
        {
            get
            {
                return this._creator;
            }
            set
            {
                this._creator = value;
            }
        }

        public DateTime EndDate
        {
            get
            {
                return (DateTime) this._endDate;
            }
            set
            {
                this._endDate = value;
            }
        }

        public bool EndDateIsNull
        {
            get
            {
                return (this._endDate == null);
            }
            set
            {
                if (value)
                {
                    this._endDate = null;
                }
            }
        }

        public string Manager
        {
            get
            {
                return (string) this._manager;
            }
            set
            {
                this._manager = value;
            }
        }

        public bool ManagerIsNull
        {
            get
            {
                return (this._manager == null);
            }
            set
            {
                if (value)
                {
                    this._manager = null;
                }
            }
        }

        public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }

        public string Participator
        {
            get
            {
                return (string) this._participator;
            }
            set
            {
                this._participator = value;
            }
        }

        public bool ParticipatorIsNull
        {
            get
            {
                return (this._participator == null);
            }
            set
            {
                if (value)
                {
                    this._participator = null;
                }
            }
        }

        public int PlanId
        {
            get
            {
                return this._planId;
            }
            set
            {
                this._planId = value;
            }
        }

        public string Remark
        {
            get
            {
                return (string) this._remark;
            }
            set
            {
                this._remark = value;
            }
        }

        public bool RemarkIsNull
        {
            get
            {
                return (this._remark == null);
            }
            set
            {
                if (value)
                {
                    this._remark = null;
                }
            }
        }

        public int Status
        {
            get
            {
                return this._status;
            }
            set
            {
                this._status = value;
            }
        }

        public string ToId
        {
            get
            {
                return (string) this._toId;
            }
            set
            {
                this._toId = value;
            }
        }

        public bool ToIdIsNull
        {
            get
            {
                return (this._toId == null);
            }
            set
            {
                if (value)
                {
                    this._toId = null;
                }
            }
        }

        public int TypeId
        {
            get
            {
                return this._typeId;
            }
            set
            {
                this._typeId = value;
            }
        }
    }
}

